<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

<!--  <div style="float:left"><IMG ALIGN="bottom" SRC="http://www.sanger.ac.uk/i/sanger-logo.png"></div> -->
<div>
<div id="headerTitle"><fmt:message key="site.title"/> </div>
<div class="subHeader">
    <!-- <fmt:message key="site.copyright"></fmt:message> -->
    <div style="float:left">
        <fmt:message key="button.locale"/>:
            <sec:authorize ifAllGranted="ROLE_USER">
                <c:set var="urlBase" value="/index.html" />
            </sec:authorize>
            <c:url var="englishLocaleUrl" value="${urlBase}">
                <c:param name="locale" value="" />
            </c:url>
            <c:url var="spanishLocaleUrl" value="${urlBase}">
                <c:param name="locale" value="es" />
            </c:url>
            <a href='<c:out value="${englishLocaleUrl}"/>'><fmt:message key="locale.english"/></a>
            <a href='<c:out value="${spanishLocaleUrl}"/>'><fmt:message key="locale.spanish"/></a>
            &nbsp; &nbsp; &nbsp;
    <sec:authorize ifAllGranted="ROLE_USER">
        <fmt:message key="button.user"/>:
			<sec:authentication property="principal.username"/>
    </sec:authorize>
    </div>
    <div align="right">
    &nbsp;
    <sec:authorize ifAllGranted="ROLE_USER">
        <a href="<c:url value="/logout"/>"><fmt:message key="button.logout"/></a>
    </sec:authorize>
    </div>
</div>
</div>